<?php

namespace frontend\models;

use Yii;
use yii\db\ActiveRecord;
/**
 * This is the model class for table "{{%my_resume}}".
 *
 * @property integer $uid
 * @property string $cnName
 * @property string $enName
 * @property string $sex
 * @property string $housereg
 * @property string $birthday
 * @property string $phone
 * @property string $email
 * @property string $educationinfo
 * @property string $workhistory
 * @property string $selfevaluation
 * @property string $selftags
 * @property string $supplement
 */
class ResumeForm extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%my_resume}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            //[['uid'], 'required'],
            [['uid'], 'integer'],
            [['cnName'], 'string', 'max' => 20],
            [['enName', 'housereg', 'email'], 'string', 'max' => 50],
            [['sex'], 'string', 'max' => 2],
            [['birthday'], 'string', 'max' => 10],
            [['phone'], 'string', 'max' => 11],
            [['educationinfo', 'workhistory', 'supplement'], 'string', 'max' => 500],
            [['selfevaluation'], 'string', 'max' => 200],
            [['selftags'], 'string', 'max' => 100],
            [['uid'], 'unique']
        ];
    }

}
